home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / xinetd / xinetd.2.0.6 / access.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-22  |  997 b   |  33 lines

  1. /*
  2.  * (c) Copyright 1992 by Panagiotis Tsirigotis
  3.  * All rights reserved.  The file named COPYRIGHT specifies the terms 
  4.  * and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef ACCESS_H
  8. #define ACCESS_H
  9.  
  10. /*
  11.  * $Id: access.h,v 5.1 1992/10/31 23:56:10 panos Exp $
  12.  */
  13.  
  14. #define CF_ADDRESS                1
  15. #define CF_TIME                    2
  16. #define CF_SERVICE_LIMIT        3
  17. #define CF_PROCESS_LIMIT        4
  18.  
  19. typedef enum
  20.    {
  21.       AC_OK,               /* ok to start a server                         */
  22.       AC_FORK,             /* tried to start a server but fork failed      */
  23.       AC_ADDRESS,          /* we do not accept requests from that address  */
  24.       AC_TIME,             /* we do not accept requests at this time       */
  25.       AC_SERVICE_LIMIT,    /* server limit would be exceeded for this      */
  26.                            /* service                                      */
  27.       AC_PROCESS_LIMIT     /* total process limit would be exceeded        */
  28.    } access_e ;
  29.  
  30. access_e access_control() ;
  31.  
  32. #endif    /* ACCESS_H */
  33.